package com.mc.clt.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mc.common.annotation.Excel;
import com.mc.common.core.domain.BaseEntity;

/**
 * 采集实时坐标点对象 clt_position
 *
 * @author mc
 * @date 2021-03-15
 */
public class CltPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 维度 */
    @Excel(name = "维度")
    private BigDecimal latitude;

    /** 方向 */
    @Excel(name = "方向")
    private BigDecimal direction;

    /** 速度 */
    @Excel(name = "速度")
    private BigDecimal speed;

    /** 角度 */
    @Excel(name = "角度")
    private BigDecimal angle;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userId;

    /** 用户编号 */
    @Excel(name = "用户姓名")
    private String nickName;


    @Excel(name = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date recordTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 移动端最后登录 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "移动端最后登录", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date appLastLoginTime;

    @Excel(name = "设备号")
    private String appMC;


    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getAppMC() {
        return appMC;
    }

    public void setAppMC(String appMC) {
        this.appMC = appMC;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setLongitude(BigDecimal longitude)
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude()
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude)
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude()
    {
        return latitude;
    }
    public void setDirection(BigDecimal direction)
    {
        this.direction = direction;
    }

    public BigDecimal getDirection()
    {
        return direction;
    }
    public void setSpeed(BigDecimal speed)
    {
        this.speed = speed;
    }

    public BigDecimal getSpeed()
    {
        return speed;
    }
    public void setAngle(BigDecimal angle)
    {
        this.angle = angle;
    }

    public BigDecimal getAngle()
    {
        return angle;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public Date getAppLastLoginTime() {
        return appLastLoginTime;
    }

    public void setAppLastLoginTime(Date appLastLoginTime) {
        this.appLastLoginTime = appLastLoginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("direction", getDirection())
                .append("speed", getSpeed())
                .append("angle", getAngle())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("nickName", getNickName())
                .append("recordTime", getRecordTime())
                .append("appMC", getAppMC())
                .append("appLastLoginTime", getAppLastLoginTime())
                .append("startDate", getStartDate())
                .append("endDate", getEndDate())
                .toString();
    }
}